// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'

require("es6-promise").polyfill();

// vuex
import store from '@/store/index'

// polyfill
import 'babel-polyfill'

// ElementUI
import '../theme/index.css'
import ElementUI from 'element-ui'
Vue.use(ElementUI)

import App from './App'

// mixin
import Mixins from '@/utils/mixins.js';
Vue.mixin(Mixins);

// 接口库
import '@/utils/api.config.js'

// 异步请求库
import '@/utils/axios.js'

// 全局注册的组件
import '@/components'

// 本地缓存
import '@/utils/storage.js'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
